const path = require('path')
module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8888' //设置与xmapp后台端口一致
        // pathRewrite: {
        //   '^/api': '/mock'
        // }
      }
    }
  },
  chainWebpack: (config) => {
    config.resolve.alias
      .set('styles', path.join(__dirname, '/src/assets/styles'))
      .set('@', path.join(__dirname, './src/'))
      .set('common', path.join(__dirname, './src/common/'))
  }
}
